package com.xucy.springboot.designmodel.creational.prototype;

import lombok.Data;

/**
 * @Author xucy
 * @Date 2019-07-17 16:36
 * @Description 邮件类
 **/
@Data
public class Email implements Cloneable{

    /**邮件名*/
    String emailName;

    /**邮件内容*/
    String emailContent;

    /**邮件地址*/
    String emailAddress;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        System.out.println("调用clone方法");
        return super.clone();
    }
}
